package com.by;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/12 15:32
 * @注释
 */
public class AudioPlayer implements MediaPlayer {
    @Override
    public void play(String audioType, String fileName) {
        if (audioType.equalsIgnoreCase("mp3")) {
            System.out.println("Playing MP3 file" + fileName);
        } else {
            System.out.println("Unsupported format" + audioType);
        }
    }
}
